#include "BdTraceTerminal.h"
#include <QString>
#include <iostream>

//Static Function
BdTraceTerminal *BdTraceTerminal::mInstance = 0;
BdTraceTerminal *BdTraceTerminal::instance()
{
  if (mInstance == 0)
  {
    mInstance = new BdTraceTerminal();
  }
  return mInstance;
}

//Constructor
BdTraceTerminal::BdTraceTerminal() :
	mEnable(true)
{
	//Noop
}


void BdTraceTerminal::information(QString text)
{
  if(mEnable)
  {
    std::cout << "Information : " << text.toStdString() << std::endl;
  }
}

void BdTraceTerminal::warning(QString text)
{
  if(mEnable)
  {
    std::cout << "Warning : " << text.toStdString() << std::endl;
  }
}

void BdTraceTerminal::erreur(QString text)
{
  if(mEnable)
  {
    std::cout << "Error : " << text.toStdString() << std::endl;
  }
}







